---触发时
---@class BuffEffect2001130:BaseBuffEffect
BuffEffect2001130 = ClientFight.CreateClass("BuffEffect2001130",ClientFight.BaseBuffEffect)
local t = BuffEffect2001130
---@param fight Fight
---@param buff FighterBuff
function t:action(fight, buff, ...)
    local target = buff.target;
    local value = buff.target.defeatPool;
    if (value > 0) then
    return IBuffEffect.FAIL;
    end
    local buffEffectValue = buff.getBuffBean().getF_BuffEffectValue();
    local disLimit = toRatio(buffEffectValue[1]);
    local fighters = fight.teams[3-target.teamIndex].fighters;
    for  fighter in pairs(fighters) do
    if fighter.fighterId==target.fighterId then
        goto continue;
    end
        if fighter:isSummons() or fighter:isDie() then
    goto continue;
        end
        local dis = DistanceUtil.countDistance(target.position, fighter.position);
        if (dis > disLimit) then
        goto continue;
        end

        SkillRoleMgr.savePathFile(string.format("[%s][EFFECT]敌方Fighter %s buff%s 触发联动 被扣除能量: %s",
        fight.frame, fighter.fighterId, buff.modelId,buffEffectValue[2]));
        clientFight.FighterManager.addEnergy(fight,fighter,0,0,-buffEffectValue[2], EnergyChangeReasonEnum.BUFF);
        ::continue::
           
        end
    return ClientFight.BaseBuffEffect.action(self,fight, buff, ...);
end
t.New()